﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="form">
    <p>
    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
    <asp:TextBox ID="UserName" CssClass="field" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
        ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" 
        ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
    </p>
    <p>
    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
    <asp:TextBox ID="Password" CssClass="field" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
        ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" 
        ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
    </p>
    <p>
    <asp:Label ID="ConfirmPasswordLabel" runat="server" 
        AssociatedControlID="ConfirmPassword">确认密码:</asp:Label>
    <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="field" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
        ErrorMessage="必须填写“确认密码”。" ToolTip="必须填写“确认密码”。" 
        ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
     </p>
    <p>
     <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">电子邮件:</asp:Label>
      <asp:TextBox ID="Email" runat="server" CssClass="field"></asp:TextBox>
     <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
          ErrorMessage="必须填写“电子邮件”。" ToolTip="必须填写“电子邮件”。"
          ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
      <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
           ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="“密码”和“确认密码”必须匹配。"
           ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
     </p>
    <p> 
      <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
     </p>
     <p>
         <asp:Button ID="CreateUserButton" runat="server" ValidationGroup="CreateUserWizard1"
            Text="注 册" OnClick="CreateUserButton_Click" />
     </p>
</div>
</asp:Content>

